import { createRouter, createWebHistory } from 'vue-router'
const routes = [
    {
        name: 'layout',
        path: '/',
        component: () => import('@/views/layouts/index.vue'),
        children: [
            {
                path: '/',
                name: 'modelEdit',
                meta: { keepAlive: true },
                component: () => import('@/views/modelEdit/index.vue')
            }
        ]
    }

]
const base = import.meta.env.MODE == 'production' ? '/three.js3d/' : '/'
const router = createRouter({
    history: createWebHistory(base),
    base,
    model: 'hash',
    routes
})

export default router